import { VideoType } from './consts'

// 视频源
export type VideoSource = {
	url: string
	type?: VideoType | 'auto'
	label?: string
	size?: number
}

export type PlayerOptions = {
	src: VideoSource | string | Array<VideoSource | string>
	defaultQuality?: number // 默认清晰度标签或索引
	poster?: string
	autoPlay?: boolean
	loop?: boolean
	muted?: boolean
	preload?: 'auto' | 'metadata' | 'none'
	controls?: boolean
	title?: string
	mutex?: boolean
	live?: boolean // 是否直播
}
